GtkColorSwatch {
border-radius: 1.5px;
box-shadow: inset 0 1px 1px transparentize(black, 0.8),
- $widget_edge;
+ widget_edge();
&:backdrop { box-shadow: none; }
}
}
$_bg: mix($bg_color, $borders_color, 70%);
background-color: $_bg;
box-shadow: inset 0 2px 3px -1px mix($borders_color, $_bg, 60%),
- $widget_edge;
+ widget_edge();
//FIXME edge would be nice, but doesn't work
&:backdrop {
border-color: $backdrop_borders_color;
font-size: 82%;
outline-offset: -4px;
box-shadow: inset 0 1px transparentize(black, 0.9), // needs to be set here
- $widget_edge; // otherwise it gets
+ widget_edge(); // otherwise it gets
// clipped
&.trough {
// similar to the .scale
@include progressbar_fill;
color: white;
border-color: $selected_borders_color;
- box-shadow: $widget_edge;
+ box-shadow: widget_edge();
//text-shadow: 0 1px transparentize($selected_borders_color,0.5);
text-shadow: 0 1px transparentize($selected_borders_color,0.5),
0 0 2px transparentize(white,0.4);
border-color: $borders_color;
background-image: none;
background-color: $insensitive_bg_color;
- box-shadow: $widget_edge;
+ box-shadow: widget_edge();
text-shadow: none;
}
&:backdrop {
border-radius: 3px;
background-color: mix($bg_color,$borders_color,60%);
box-shadow: inset 1px 1px transparentize(black, 0.9),
- $widget_edge;
+ widget_edge();
&.highlight {
@include progressbar_fill;
border-color: $selected_borders_color;
- box-shadow: $widget_edge;
+ box-shadow: widget_edge();
&.vertical { @include progressbar_fill(vertical); }
&:backdrop {
border-color: if($variant=='light', $selected_bg_color,
border-color: $insensitive_borders_color;
background-image: none;
background-color: $insensitive_bg_color;
- box-shadow: $widget_edge;
+ box-shadow: widget_edge();
}
&:backdrop {
border-color: $backdrop_borders_color;
font-size: 82%;
color: transparentize($fg_color, 0.6);
box-shadow: inset 1px 1px transparentize(black, 0.9), // needs to be set
- $widget_edge; // here ot it gets
+ widget_edge(); // here ot it gets
// clipped
&:backdrop {
color: $backdrop_insensitive_color;
GtkLevelBar {
-GtkLevelBar-min-block-width: 34;
-GtkLevelBar-min-block-height: 3;
- box-shadow: $widget_edge; // needs to be set here to avoid clipping
+ box-shadow: widget_edge(); // needs to be set here to avoid clipping
}
GtkLevelBar.vertical {
// generic drawing of more complex things
-$widget_edge: 0 1px $borders_edge; //outer hilight "used" on
- //most widgets
+@function widget_edge($c:$borders_edge) {
+ // outer highlight "used" on most widgets
+ @return 0 1px $c;
+}
@mixin _shadows($shadow1, $shadow2:none, $shadow3:none, $shadow4:none) {
//
background-color: transparent;
background-image: entry_gradient($base_color);
$_blank_edge: if($noedge, none, 0 1px transparentize(white,1));
- $_entry_edge: if($noedge, none, $widget_edge);
+ $_entry_edge: if($noedge, none, widget_edge());
$_inner_shadows: inset 0 3px mix(black, $base_color, 3%),
inset 0 1px mix(black, $base_color, 18%);
@if $variant == 'dark' {
@else { border-color: $borders_color; }
@include _button_text_shadow($tc,$c);
- $_outsets: if($noedge, none, $widget_edge);
+ $_outsets: if($noedge, none, widget_edge());
@include _shadows(inset 0 1px $_top_hilight, $_outsets);
}
$c);
@include _button_text_shadow($tc,lighten($c,4%));
- $_outsets: if($noedge, none, $widget_edge);
+ $_outsets: if($noedge, none, widget_edge());
@include _shadows(inset 0 1px $_top_hilight, $_outsets);
}
darken($c,9%),
darken($c,5%));
@include _button_text_shadow($tc,darken($c,10%));
- $_outsets: if($noedge, none, $widget_edge);
+ $_outsets: if($noedge, none, widget_edge());
@include _shadows(inset 0 1px transparentize(black, 0.93),
inset 0 2px 1px -2px transparentize(black,0.4),
$_outsets);
background-image: linear-gradient(to bottom, $_bg);
text-shadow: none;
icon-shadow: none;
- $_outsets: if($noedge, none, $widget_edge);
+ $_outsets: if($noedge, none, widget_edge());
// white with 0 alpha to avoid an ugly transition, since no color means
// black with 0 alpha
@include _shadows(inset 0 1px transparentize(white,1), $_outsets);
color: $insensitive_fg_color;
border-color: $insensitive_borders_color;
background-image: linear-gradient(to bottom, mix($_bc, $_bg, 10%), $_bg);
- $_outsets: if($noedge, none, $widget_edge);
+ $_outsets: if($noedge, none, widget_edge());
// white with 0 alpha to avoid an ugly transition, since no color means
// black with 0 alpha
@include _shadows(inset 0 1px transparentize(white,1), $_outsets);